﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SlideShow.Models.Usuario>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SlideShow
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Lista de Usuarios</h2>

    <table>
        <tr>
            <th></th>
            <th>
                Email
            </th>
            <th>
                Nombre
            </th>
            <th>
                Apellido
            </th>
            <th>
                Ocupacion
            </th>
            <th>
                Carrera
            </th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            <td>
                <%: Html.ActionLink("Editar", "Edit", new { id = item.Email }, new  { @class="edit_link"})%> |
                <%: Html.ActionLink("Detalles", "Details", new { id = item.Email }, new { @class = "detail_link" })%> |
                <%: Html.ActionLink("Eliminar", "Delete", new { id = item.Email }, new { @class = "delete_link" })%>
            </td>
            <td>
                <%: item.Email %>
            </td>
            <td>
                <%: item.Nombre %>
            </td>
            <td>
                <%: item.Apellido %>
            </td>
            <td>
                <%: item.Ocupacion %>
            </td>
            <td>
                <%: item.Carrera %>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%: Html.ActionLink("Agregar Usuario", "Create") %>
    </p>

</asp:Content>

